/*
 * 
 * 针对site目录下文件函数文件
 * 
 */

$(document).ready(function(){
	feedback();
});

var feedback = function(){
	var code = '10000';
	$('#feedback_btn').bind('click',function() {
		var data = $('#feedback_form').serialize();
		
		$.ajax({
			url:		'.',
			data:		data,
			type:		'post',
			dataType:	'json',
			success:	function(response){
				if(response.code != '10000' ){
					popErr("出错了！", response.message, 2);
					return;
				}
			},
			error:	function(e){
				popErrCode(e);
			},
			complete:	function(){
				setTimeout(function(){
					status = 0;
				},3000);
			}
		});
		return false;
	});
}
